﻿using ZQNB.Common.Attributes;

namespace ZQNB.Web.Areas.Admin.Properties
{
    //可以分别打在Controller的Action上，也可以集中打在某个类里
    [HasMetasInMethod]
    public class AdminMenuMetas
    {
        [Menu("admin", "admin", null, "admin0", "后台首页", "/admin/home/index", "menu-icon fa fa-tachometer", 0.0)]

        [Menu("admin", "admin", "admin0", "admin1", "站点管理", "#", "menu-icon fa fa-cog", 1.0)]
        [Menu("admin", "admin", "admin1", "admin1.1", "站点设置", "/admin/domainsetting/domaininfo", "", 1.1)]
        //[Menu("admin", "admin", "admin1", "admin1.2", "菜单管理", "/admin/menu/menuSetting", "", 1.2)]
        //[Menu("admin", "admin", "admin1", "admin1.3", "布局管理", "/admin/layout/LayoutSetting", "", 1.3)]

        [Menu("admin", "admin", "admin0", "admin2", "用户管理", "#", "menu-icon fa fa-users", 2.0)]
        [Menu("admin", "admin", "admin2", "admin2.1", "教师管理", "/admin/teacher/index", "", 2.1)]
        [Menu("admin", "admin", "admin2", "admin2.2", "学生管理", "/admin/student/index", "", 2.2)]

        [Menu("admin", "admin", "admin0", "admin3", "权限管理", "#", "menu-icon fa fa-eye", 3.0)]
        [Menu("admin", "admin", "admin3", "admin3.1", "角色权限分配", "/admin/role/index", "", 3.1)]
        //[Menu("admin", "admin", "admin3", "admin3.2", "组织管理员分配", "/admin/orgmanager/index", "", 3.2)]

        [Menu("admin", "admin", "admin0", "admin4", "基础信息管理", "#", "menu-icon fa fa-book", 4.0)]
        [Menu("admin", "admin", "admin4", "admin4.1", "学科管理", "/admin/diccustom/index?type=subject", "", 4.1)]
        [Menu("admin", "admin", "admin4", "admin4.2", "年级管理", "/admin/diccustom/index?type=grade", "", 4.2)]
        [Menu("admin", "admin", "admin4", "admin4.3", "角色管理", "/admin/diccustom/index?type=role", "", 4.3)]

        [Menu("admin", "admin", "admin0", "admin5", "资源管理", "#", "menu-icon fa fa-film", 5.0)]
        [Menu("admin", "admin", "admin5", "admin5.1", "资源设置", "/admin/resourceset/index", "", 5.1)]
        [Menu("admin", "admin", "admin5", "admin5.2", "分类管理", "/admin/classification/index", "", 5.2)]
        [Menu("admin", "admin", "admin5", "admin5.3", "目录管理", "/admin/catalogmanage/index", "", 5.3)]
        [Menu("admin", "admin", "admin5", "admin5.4", "审核管理", "/admin/resourceset/publish", "", 5.4)]
        [Menu("admin", "admin", "admin5", "admin5.5", "举报管理", "/admin/resourceset/tipoff", "", 5.5)]

        [Menu("admin", "admin", "admin0", "admin6", "公告管理", "#", "menu-icon fa fa-bullhorn", 6.0)]
        [Menu("admin", "admin", "admin6", "admin6.1", "公告管理", "/admin/news/noticeedit", "", 6.1)]

        [Menu("admin", "admin", "admin0", "admin13", "直播管理", "#", "menu-icon fa fa-desktop", 13.0)]
        [Menu("admin", "admin", "admin13", "admin13.1", "直播管理", "/admin/livemanage/index", "", 13.1)]

        //移至相应的模块中  编号目前已有 7-8 相应模块请自行增加
        //[Menu("admin", "admin", "admin0", "admin6", "评估管理", "#", "", 6.0)]
        //[Menu("admin", "admin", "admin6", "admin6.1", "方案管理", "/admin/scheme/index", "", 6.1)]

        //[Menu("admin", "admin", "admin0", "admin7", "名师管理", "#", "", 7.0)]
        //[Menu("admin", "admin", "admin7", "admin7.1", "名师管理", "/ftc/teacher/index", "", 7.1)]

        public void AllAdminMenus()
        {
        }
    }

    //可以分别打在Controller的Action上，也可以集中打在某个类里
    [HasMetasInMethod]
    public class AdminOpMetas
    {
        //[Op(Module = "Admin", Category = "学科资源管理", Href = "/admin/catalogmanage/index", Text = "目录管理"
        //    , SortNum = 1, ArgsName = "", DefaultRoles = "", CanEditDefaultRoles = true, MenuPks = "space1.2.1")]
        //[Op(Module = "Admin", Category = "学科资源管理", Href = "Admin/Classification/Index", Text = "分类管理"
        //    , SortNum = 2, ArgsName = "", DefaultRoles = "", CanEditDefaultRoles = true, MenuPks = "")]
        //[Op(Module = "Admin", Category = "站点管理", Href = "Admin/DomainSetting/DomainInfo", Text = "站点设置"
        //    , SortNum = 3, ArgsName = "", DefaultRoles = "", CanEditDefaultRoles = true, MenuPks = "")]
        //[Op(Module = "Admin", Category = "学科资源管理", Href = "Admin/ResourceSet/Index", Text = "资源设置"
        //    , SortNum = 4, ArgsName = "", DefaultRoles = "", CanEditDefaultRoles = true, MenuPks = "")]
        //[Op(Module = "Admin", Category = "阳光课堂", Href = "Admin/Home/Index", Text = "课堂管理"
        //    , SortNum = 5, ArgsName = "", DefaultRoles = "", CanEditDefaultRoles = true, MenuPks = "")]
        //public void AllOps()
        //{
        //}
    }
}